﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace S.Organization.API.Application.Command.CottageCommand
{
    public class AddCottageCommand:IRequest<int>
    {

        /// <summary>
        /// 主键自增
        /// </summary>
        [Key]
        public int CottageId { get; set; }

        /// <summary>
        /// 栋舍类型
        /// </summary>
        [StringLength(30)]
        public string? CottageType { get; set; }

        /// <summary>
        /// 栋舍名称
        /// </summary>
        [StringLength(30)]
        public string? CottageName { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(30)]
        public string? Principal { get; set; }

        /// <summary>
        /// 生产人员
        /// </summary>
        [StringLength(30)]
        public string? Production { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool CottageState { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(300)]
        public string? Remark { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? UpdateDate { get; set; }
    }
}
